package com.midou.administration.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Journal implements Serializable {
    /**
    * 主键
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 员工表外键
    */
    private Integer clId;

    /**
    * 登录端
    */
    private String loginSide;

    /**
    * 商家外建
    */
    private Integer buId;

    /**
    * 登录者的IP
    */
    private String ip;

    /**
    * 登录者的时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date logintime;
    //员工对象
    private Clerk clerk;
    //员工类型
    private Role role;

    private static final long serialVersionUID = 1L;
}